package com.example.listaderestaurantes;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

public class Menu extends Activity {

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_menu);
		Button ir = (Button) findViewById(R.id.cadastrar);
		ir.setOnClickListener(cadastrando);
	
	}
	private OnClickListener cadastrando = new OnClickListener() {
		

		public void onClick(View arg0) {
			
			Intent it = new Intent("CADASTRAR"); 
			
			startActivity(it);
			 stopService(it);
		
		  
		 
		}
	};
}